package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * 
 * @TableName train_queoptions
 */
@TableName(value ="train_queoptions")
@JsonIgnoreProperties(ignoreUnknown = true)
public class TrainQueoptions implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 选项内容
     */

    private String queanswer;

    /**
     * 选项序号
     */
    private Integer queoptionnum;

    /**
     * 是否是答案 0否 1是
     */
    private Integer isanswer;

    /**
     * 试题id
     */
    private Integer queid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 选项内容
     */
    public String getQueanswer() {
        return queanswer;
    }

    /**
     * 选项内容
     */
    public void setQueanswer(String queanswer) {
        this.queanswer = queanswer;
    }

    /**
     * 选项序号
     */
    public Integer getQueoptionnum() {
        return queoptionnum;
    }

    /**
     * 选项序号
     */
    public void setQueoptionnum(Integer queoptionnum) {
        this.queoptionnum = queoptionnum;
    }

    /**
     * 是否是答案 0否 1是
     */
    public Integer getIsanswer() {
        return isanswer;
    }

    /**
     * 是否是答案 0否 1是
     */
    public void setIsanswer(Integer isanswer) {
        this.isanswer = isanswer;
    }

    /**
     * 试题id
     */
    public Integer getQueid() {
        return queid;
    }

    /**
     * 试题id
     */
    public void setQueid(Integer queid) {
        this.queid = queid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TrainQueoptions other = (TrainQueoptions) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getQueanswer() == null ? other.getQueanswer() == null : this.getQueanswer().equals(other.getQueanswer()))
            && (this.getQueoptionnum() == null ? other.getQueoptionnum() == null : this.getQueoptionnum().equals(other.getQueoptionnum()))
            && (this.getIsanswer() == null ? other.getIsanswer() == null : this.getIsanswer().equals(other.getIsanswer()))
            && (this.getQueid() == null ? other.getQueid() == null : this.getQueid().equals(other.getQueid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getQueanswer() == null) ? 0 : getQueanswer().hashCode());
        result = prime * result + ((getQueoptionnum() == null) ? 0 : getQueoptionnum().hashCode());
        result = prime * result + ((getIsanswer() == null) ? 0 : getIsanswer().hashCode());
        result = prime * result + ((getQueid() == null) ? 0 : getQueid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", queanswer=").append(queanswer);
        sb.append(", queoptionnum=").append(queoptionnum);
        sb.append(", isanswer=").append(isanswer);
        sb.append(", queid=").append(queid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}